﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DOTNETGROUP.Data;
using DOTNETGROUP.Entities;

public partial class Chi_Tiet_Mau_Web : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            HienthiMauweb();
        }
    }
    protected void HienthiMauweb()
    {
        MauWeb ent_MauWeb = DataRepository.MauWebProvider.GetById(Convert.ToInt32(Request.Params["Id"]));
        lblTieuDe.Text = ent_MauWeb.TieuDe;
        imageAnhDaiDien.ImageUrl = "~/Upload/MauWeb/Full/" + ent_MauWeb.AnhDaiDien;
        lblTomtat.Text = ent_MauWeb.TomTat;
        litTieuDe.Text = ent_MauWeb.TieuDe;
        litDienGiai.Text = String.Format("<meta content='{0}' name='description' />", ent_MauWeb.TomTat);
    }



}